package com.econ.powercloud.ems.dal.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ Description遥测副表
 * @ Author：hgp
 * @ Create:2022-05-23-16:38
 */
@Accessors(chain = true)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ExtIotViceProductYc implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键自增
     */
    @TableId(value = "pid", type = IdType.AUTO)
    private Integer pid;

    /**
     * 产品key
     */
    private String productKey;

    /**
     * 点号
     */
    private String dit;

    /**
     * 名称
     */
    private String name;

    /**
     * 字段1
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String val1;

    /**
     * 字段2
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String val2;

    /**
     * 字段3
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String val3;

    /**
     * 字段4
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String val4;

    /**
     * 字段5
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String val5;

    /**
     * 字段6
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String val6;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModify;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    /**
     * 修改人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String modifyBy;

    /**
     * 是否删除，1已删除
     */
    @TableField(fill = FieldFill.INSERT)
    @TableLogic(value = "0", delval = "1")
    private Integer deleteFlag;
}
